import java.util.Scanner;

/**
 * Creater with IntelliJ IDEA.
 * Description:
 * User: 86152
 * Dae: 2022-11-26
 * Time: 15:28
 */
public class demo1 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a=scanner.nextInt();
        int b=scanner.nextInt();
        if(a==0) {
            System.out.println(0);
            return;
        }
        if(b>0) {
            System.out.println(Math.abs(a));
        } else if(b<0){
            System.out.println(-Math.abs(a));
        }
    }
}
